<html>
<head>
<title>Multithreaded Programs</title>
</head>
<body>
<table width=100%>
<tr>
<td align=left>
<a href="group.html"><img src=../../images/PreviousArrow.gif width=26 height=26 align=bottom border=0 alt="Previous | "></a><a
href="synchronization.html"><img src=../../images/NextArrow.gif width=26 height=26 align=bottom border=0 alt="Next | "></a><a
href="../../index.html"><img src=../../images/WayUpArrow.gif width=26 height=26 align=bottom border=0 alt="Trail Map | "></a><a
href="../index.html"><img src=../../images/javaHeader.gif width=26 height=26 align=bottom border=0 alt="Writing Java Programs | "></a>
<td>
<td align=right>
<a href="index.html"><strong><em>Threads of Control</em></strong></a>
</td>
</tr>
</table>
<p>
<hr size=4>

<h2>
    Multithreaded Programs
</h2>
<p>
<blockquote>

<h4><a href=synchronization.html>Synchronization</a>
</h4>
<blockquote>
Often, threads need to share data. For example, suppose you have a thread
that writes data to a file while, at the same time, another thread is
reading data from that same file. When your threads need to share information
you need to synchronize the threads to get the desired results.
</blockquote>

<h4><a href=deadlock.html>Deadlock</a>
</h4>
<blockquote>
Deadlock occurs when two threads are waiting for some condition to
change that is precluded from changing because of all threads that
can change the condition are waiting. This page uses the dining
philosophers to illustrate the problem of deadlock, and discusses
various ways to avoid it.
</blockquote>

<h4><a href=reentrant.html>Re-entrant Monitors</a>
</h4>
<blockquote>
Java monitors are re-entrant.
</blockquote>

<h4><a href=../../MissingPage.html>Volatile</a>
</h4>
<blockquote>
[PENDING: This technology is under construction.]
</blockquote>

</blockquote>
<p>
<hr size=4>
<p>
<table width=100%>
<tr>
<td align=left>
<a href="group.html"><img src=../../images/PreviousArrow.gif width=26 height=26 align=top border=0 alt="Previous | "></a><a
href="synchronization.html"><img src=../../images/NextArrow.gif width=26 height=26 align=top border=0 alt="Next | "></a><a
href="../../index.html"><img src=../../images/WayUpArrow.gif width=26 height=26 align=top border=0 alt="Trail Map | "></a><a
href="../index.html"><img src=../../images/javaHeader.gif width=26 height=26 align=top border=0 alt="Writing Java Programs | "></a>
<td>
<td align=right>
<a href="index.html"><strong><em>Threads of Control</em></strong></a>
</td>
</tr>
</table>
</body>
</html>
